.class public Lcom/uucun/adsdk/view/l;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/uucun/adsdk/c/i;


# static fields
.field public static final a:Ljava/lang/String;


# instance fields
.field final b:Ljava/lang/Runnable;

.field private c:Landroid/widget/LinearLayout;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/content/Context;

.field private f:Lcom/uucun/adsdk/d/e;

.field private g:Landroid/os/Handler;

.field private h:I

.field private i:I

.field private j:I

.field private k:Z

.field private l:Landroid/graphics/Bitmap;

.field private m:Lcom/uucun/adsdk/a/a;

.field private n:Ljava/util/Timer;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-class v0, Lcom/uucun/adsdk/view/l;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/widget/LinearLayout;)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, -0x1

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object v1, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iput-object v1, p0, Lcom/uucun/adsdk/view/l;->g:Landroid/os/Handler;

    iput v2, p0, Lcom/uucun/adsdk/view/l;->h:I

    const/16 v0, 0x140

    iput v0, p0, Lcom/uucun/adsdk/view/l;->i:I

    const/16 v0, 0x1e0

    iput v0, p0, Lcom/uucun/adsdk/view/l;->j:I

    iput-boolean v3, p0, Lcom/uucun/adsdk/view/l;->k:Z

    iput-object v1, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    iput-object v1, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    iput-object v1, p0, Lcom/uucun/adsdk/view/l;->n:Ljava/util/Timer;

    new-instance v0, Lcom/uucun/adsdk/view/i;

    invoke-direct {v0, p0}, Lcom/uucun/adsdk/view/i;-><init>(Lcom/uucun/adsdk/view/l;)V

    iput-object v0, p0, Lcom/uucun/adsdk/view/l;->b:Ljava/lang/Runnable;

    iput-object p1, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    iput-object p2, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/view/l;->n:Ljava/util/Timer;

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/uucun/adsdk/view/l;->g:Landroid/os/Handler;

    invoke-static {}, Lcom/uucun/adsdk/a/a;->a()Lcom/uucun/adsdk/a/a;

    move-result-object v0

    iput-object v0, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    new-instance v0, Lcom/uucun/adsdk/view/f;

    invoke-direct {v0, p0, p1}, Lcom/uucun/adsdk/view/f;-><init>(Lcom/uucun/adsdk/view/l;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/uucun/adsdk/view/l;->d:Landroid/widget/ImageView;

    new-instance v0, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v0, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->d:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-static {p1, v3}, Lcom/uucun/adsdk/b/b;->a(Landroid/content/Context;Z)[I

    move-result-object v0

    const/4 v1, 0x0

    aget v1, v0, v1

    iput v1, p0, Lcom/uucun/adsdk/view/l;->i:I

    aget v0, v0, v3

    iput v0, p0, Lcom/uucun/adsdk/view/l;->j:I

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->d:Landroid/widget/ImageView;

    new-instance v1, Lcom/uucun/adsdk/view/e;

    invoke-direct {v1, p0}, Lcom/uucun/adsdk/view/e;-><init>(Lcom/uucun/adsdk/view/l;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic a(Lcom/uucun/adsdk/view/l;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/uucun/adsdk/view/l;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 7

    iget-boolean v0, p0, Lcom/uucun/adsdk/view/l;->k:Z

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    invoke-virtual {v0}, Lcom/uucun/adsdk/a/a;->d()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    invoke-static {v0}, Lcom/uucun/adsdk/d;->c(Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v4

    :try_start_0
    const-string v0, "app_key"

    invoke-virtual {v4, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v1, "imei"

    invoke-virtual {v4, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    const-string v5, "app_key"

    const-string v6, "app_key"

    invoke-virtual {v4, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v5, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v4, "flag"

    const-string v5, "1"

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v4, "old_ad_ids"

    invoke-virtual {v3, v4, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v1, "|"

    invoke-virtual {v2, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v1, "|"

    invoke-virtual {v2, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-static {}, Lcom/uucun/adsdk/b/c;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/DoEncrypt;->encodecrypt(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "valid_key"

    invoke-virtual {v3, v1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    new-instance v0, Lcom/uucun/adsdk/c/c;

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    invoke-static {}, Lcom/uucun/adsdk/b/k;->a()Lcom/uucun/adsdk/b/k;

    move-result-object v2

    iget-object v2, v2, Lcom/uucun/adsdk/b/k;->j:Ljava/lang/String;

    const/4 v4, 0x1

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/uucun/adsdk/c/c;-><init>(Landroid/content/Context;Ljava/lang/String;Lorg/json/JSONObject;Z)V

    invoke-virtual {v0}, Lcom/uucun/adsdk/c/c;->start()V

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1
.end method

.method static synthetic a(Lcom/uucun/adsdk/view/l;)Z
    .locals 1

    invoke-direct {p0}, Lcom/uucun/adsdk/view/l;->e()Z

    move-result v0

    return v0
.end method

.method static synthetic a(Lcom/uucun/adsdk/view/l;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/uucun/adsdk/view/l;->k:Z

    return p1
.end method

.method static synthetic b(Lcom/uucun/adsdk/view/l;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->g:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic c(Lcom/uucun/adsdk/view/l;)I
    .locals 1

    iget v0, p0, Lcom/uucun/adsdk/view/l;->h:I

    return v0
.end method

.method static synthetic d(Lcom/uucun/adsdk/view/l;)Lcom/uucun/adsdk/a/a;
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    return-object v0
.end method

.method private d()V
    .locals 3

    iget-boolean v0, p0, Lcom/uucun/adsdk/view/l;->k:Z

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    invoke-virtual {v0}, Lcom/uucun/adsdk/a/a;->c()Z

    move-result v0

    if-eqz v0, :cond_2

    sget-object v0, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    const-string v1, "\u6ca1\u6709\u5e7f\u544a"

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/uucun/adsdk/view/l;->b()V

    goto :goto_0

    :cond_2
    iget v0, p0, Lcom/uucun/adsdk/view/l;->h:I

    add-int/lit8 v0, v0, 0x1

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    invoke-virtual {v1}, Lcom/uucun/adsdk/a/a;->e()I

    move-result v1

    if-lt v0, v1, :cond_3

    sget-object v0, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    const-string v1, "\u8001\u7684\u5e7f\u544a\u663e\u793a\u5b8c\uff0c\u8f7d\u5165\u65b0\u7684\u5e7f\u544a"

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/uucun/adsdk/view/l;->b()V

    goto :goto_0

    :cond_3
    iget v0, p0, Lcom/uucun/adsdk/view/l;->h:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/uucun/adsdk/view/l;->h:I

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    iget v1, p0, Lcom/uucun/adsdk/view/l;->h:I

    invoke-virtual {v0, v1}, Lcom/uucun/adsdk/a/a;->a(I)Lcom/uucun/adsdk/d/e;

    move-result-object v0

    iput-object v0, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v1, v1, Lcom/uucun/adsdk/d/e;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    invoke-static {v1, v2}, Lcom/uucun/adsdk/b/c;->a(Ljava/lang/String;Landroid/content/Context;)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, v0, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    :cond_4
    invoke-direct {p0}, Lcom/uucun/adsdk/view/l;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "\u663e\u793a\u5e7f\u544a\uff1aID:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v2, v2, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " old size: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v2, v2, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " x "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v2, v2, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " new size:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " x "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " imageView size: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getWidth()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " x "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getHeight()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/uucun/adsdk/view/h;

    invoke-direct {v0, p0}, Lcom/uucun/adsdk/view/h;-><init>(Lcom/uucun/adsdk/view/l;)V

    invoke-virtual {v0}, Lcom/uucun/adsdk/view/h;->start()V

    goto/16 :goto_0
.end method

.method static synthetic e(Lcom/uucun/adsdk/view/l;)V
    .locals 0

    invoke-direct {p0}, Lcom/uucun/adsdk/view/l;->d()V

    return-void
.end method

.method private e()Z
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    if-nez v0, :cond_0

    move v0, v5

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v0, v0, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    if-nez v0, :cond_1

    move v0, v5

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    :cond_2
    sget-object v0, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Point:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget v2, v2, Lcom/uucun/adsdk/d/e;->e:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " AD ID:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v2, v2, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v2, v2, Lcom/uucun/adsdk/d/e;->i:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "1"

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget-object v1, v1, Lcom/uucun/adsdk/d/e;->i:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    move v0, v6

    :goto_1
    iget v1, p0, Lcom/uucun/adsdk/view/l;->j:I

    const/16 v2, 0x1e0

    if-ge v1, v2, :cond_3

    const/16 v1, 0x32

    :goto_2
    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    iget v3, p0, Lcom/uucun/adsdk/view/l;->i:I

    invoke-static {v2, v3, v1, v0}, Lcom/uucun/adsdk/b/c;->a(Lcom/uucun/adsdk/d/e;IIZ)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->d:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->d:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->d:Landroid/widget/ImageView;

    invoke-static {v0}, Lcom/uucun/adsdk/b/c;->b(Landroid/view/View;)V

    move v0, v6

    goto/16 :goto_0

    :cond_3
    iget v1, p0, Lcom/uucun/adsdk/view/l;->j:I

    int-to-double v1, v1

    const-wide v3, 0x3fbeb851eb851eb8L

    mul-double/2addr v1, v3

    double-to-int v1, v1

    goto :goto_2

    :cond_4
    move v0, v5

    goto :goto_1
.end method

.method static synthetic f(Lcom/uucun/adsdk/view/l;)Lcom/uucun/adsdk/d/e;
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->f:Lcom/uucun/adsdk/d/e;

    return-object v0
.end method

.method static synthetic g(Lcom/uucun/adsdk/view/l;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 2

    sget-object v0, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    const-string v1, "Can Not Fetch Ads,Remove Old And Hide The View."

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->c:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/uucun/adsdk/view/l;->c()V

    const/4 v0, 0x0

    sput-boolean v0, Lcom/uucun/adsdk/a/a;->a:Z

    return-void
.end method

.method public a(I)V
    .locals 6

    const/16 v1, 0x3c

    const/16 v0, 0x14

    if-ge p1, v0, :cond_1

    :goto_0
    if-le v0, v1, :cond_0

    move v4, v1

    :goto_1
    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->n:Ljava/util/Timer;

    new-instance v1, Lcom/uucun/adsdk/view/j;

    invoke-direct {v1, p0}, Lcom/uucun/adsdk/view/j;-><init>(Lcom/uucun/adsdk/view/l;)V

    const-wide/16 v2, 0x0

    mul-int/lit16 v4, v4, 0x3e8

    int-to-long v4, v4

    invoke-virtual/range {v0 .. v5}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;JJ)V

    return-void

    :cond_0
    move v4, v0

    goto :goto_1

    :cond_1
    move v0, p1

    goto :goto_0
.end method

.method public a(Lcom/uucun/adsdk/d/e;)V
    .locals 5

    sget-object v0, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Enter Url :"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p1, Lcom/uucun/adsdk/d/e;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " Ad id : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p1, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/uucun/adsdk/a/c;->a()Lcom/uucun/adsdk/a/c;

    move-result-object v0

    iget-object v1, p1, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/uucun/adsdk/a/c;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "\u8be5\u4efb\u52a1\u6b63\u5728\u8fdb\u884c!"

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    invoke-static {v0, v1}, Lcom/uucun/adsdk/UUAppConnect;->showToast(Ljava/lang/String;Landroid/content/Context;)V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    invoke-static {v1}, Lcom/uucun/adsdk/d;->c(Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v1

    :try_start_0
    const-string v2, "imei"

    const-string v3, "imei"

    invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "event_type"

    const-string v2, "1"

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "flag"

    const-string v2, "1"

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "ad_id"

    iget-object v2, p1, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "isInstall"

    iget-object v2, p1, Lcom/uucun/adsdk/d/e;->h:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    new-instance v1, Lcom/uucun/adsdk/c/b;

    iget-object v2, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    iget-object v3, p1, Lcom/uucun/adsdk/d/e;->a:Ljava/lang/String;

    iget-object v4, p1, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-direct {v1, v2, v3, v4}, Lcom/uucun/adsdk/c/b;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/uucun/adsdk/a/c;->a()Lcom/uucun/adsdk/a/c;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/uucun/adsdk/a/c;->a(Lcom/uucun/adsdk/c/b;)V

    const/4 v2, 0x1

    new-array v2, v2, [Lorg/json/JSONObject;

    const/4 v3, 0x0

    aput-object v0, v2, v3

    invoke-virtual {v1, v2}, Lcom/uucun/adsdk/c/b;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    :catch_0
    move-exception v1

    goto :goto_1
.end method

.method public a(Ljava/util/ArrayList;)V
    .locals 5

    const/4 v4, 0x0

    invoke-virtual {p0}, Lcom/uucun/adsdk/view/l;->c()V

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    invoke-virtual {v0}, Lcom/uucun/adsdk/a/a;->c()Z

    move-result v0

    if-nez v0, :cond_1

    iput v1, p0, Lcom/uucun/adsdk/view/l;->h:I

    :goto_1
    move v2, v4

    :goto_2
    if-ge v2, v1, :cond_2

    invoke-virtual {p1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/uucun/adsdk/d/e;

    iget-object v3, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    invoke-virtual {v3, v0}, Lcom/uucun/adsdk/a/a;->a(Lcom/uucun/adsdk/d/e;)V

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_2

    :cond_1
    const/4 v0, -0x1

    iput v0, p0, Lcom/uucun/adsdk/view/l;->h:I

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->g:Landroid/os/Handler;

    iget-object v1, p0, Lcom/uucun/adsdk/view/l;->b:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    sput-boolean v4, Lcom/uucun/adsdk/a/a;->a:Z

    goto :goto_0
.end method

.method public b()V
    .locals 5

    const/4 v4, 0x1

    sget-boolean v0, Lcom/uucun/adsdk/a/a;->a:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    const-string v1, "\u5df2\u7ecf\u6709\u6293\u53d6\u5e7f\u544a\u7684\u4efb\u52a1\u4e86..."

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    invoke-static {v0}, Lcom/uucun/adsdk/d;->c(Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v0

    sget-object v1, Lcom/uucun/adsdk/view/l;->a:Ljava/lang/String;

    const-string v2, "\u5f00\u542f\u6293\u53d6\u5e7f\u544a\u7684\u4efb\u52a1..."

    invoke-static {v1, v2}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v2, "imei"

    const-string v3, "imei"

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-static {}, Lcom/uucun/adsdk/a/a;->a()Lcom/uucun/adsdk/a/a;

    move-result-object v0

    iget-object v0, v0, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->length()I

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "old_ad_ids"

    const-string v2, ""

    invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    sput-boolean v4, Lcom/uucun/adsdk/a/a;->a:Z

    new-instance v0, Lcom/uucun/adsdk/c/a;

    invoke-static {}, Lcom/uucun/adsdk/b/k;->a()Lcom/uucun/adsdk/b/k;

    move-result-object v2

    iget-object v2, v2, Lcom/uucun/adsdk/b/k;->i:Ljava/lang/String;

    iget-object v3, p0, Lcom/uucun/adsdk/view/l;->e:Landroid/content/Context;

    invoke-direct {v0, v2, v3, p0}, Lcom/uucun/adsdk/c/a;-><init>(Ljava/lang/String;Landroid/content/Context;Lcom/uucun/adsdk/c/i;)V

    new-array v2, v4, [Lorg/json/JSONObject;

    const/4 v3, 0x0

    aput-object v1, v2, v3

    invoke-virtual {v0, v2}, Lcom/uucun/adsdk/c/a;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    :cond_1
    :try_start_1
    const-string v0, "old_ad_ids"

    invoke-static {}, Lcom/uucun/adsdk/a/a;->a()Lcom/uucun/adsdk/a/a;

    move-result-object v2

    iget-object v2, v2, Lcom/uucun/adsdk/a/a;->c:Ljava/lang/StringBuffer;

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1
.end method

.method public c()V
    .locals 2

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->g:Landroid/os/Handler;

    new-instance v1, Lcom/uucun/adsdk/view/g;

    invoke-direct {v1, p0}, Lcom/uucun/adsdk/view/g;-><init>(Lcom/uucun/adsdk/view/l;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->m:Lcom/uucun/adsdk/a/a;

    invoke-virtual {v0}, Lcom/uucun/adsdk/a/a;->b()V

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/uucun/adsdk/view/l;->l:Landroid/graphics/Bitmap;

    :cond_0
    return-void
.end method
